<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'messageleave.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="css/common.css">

  </head>
  
  <body>
  	<s:if test="#session.currentUser==null">
  		<jsp:forward page="../login.jsp"></jsp:forward>
  	</s:if>  
    <s:form action="jsp_user_messageadd.action" method="post" theme="simple">
    	<div class="centerdiv">
	    	<table class="leftstyle">
	    			<tr>
	    				<td colspan="2"><font class="hot">热门推荐：</font></td>
	    			</tr>
	    			<tr>
	    				<td colspan="2">
							<ul>
								<li>穆斯林的葬礼</li>
								<li>乔布斯传</li>
								<li>麦田里的守望者</li>
							</ul>
	    				</td>
	    			</tr>
	    			<tr>
	    				<td colspan="2"><font class="hot">友情链接：</font></td>
	    			</tr>
	    			<tr>
	    				<td colspan="2">
							<ul>
								<s:iterator value="#session.linkList">
							    	<li><a href="<s:property value='url' />" target="_top" class="myfont">
							    			<s:property value="site" />
							    		</a>
							    	</li>	
							    </s:iterator>
						
							</ul>
	    				</td>
	    			</tr>
	    			
	    	</table>
			<table class="tablestyle">
				<tr>
					<td align="center">
						<table>
							<tr>
				    			<td align="left">用户名</td>
				    			<td><s:property value="#session.currentUser.username"/></td>
				    		</tr>
				    		<tr>
				    			<td align="left">标题</td>
				    			<td><s:textfield name="title" id="message_title"></s:textfield></td>
				    		</tr>
				    		<tr>
				    			<td align="left">内容</td>
				    			<td><s:textarea name="content" id="message_content"></s:textarea></td>
				    		</tr>
				    		<tr>
				    			<td colspan="2" align="center">
				    				<s:submit value="提交"></s:submit>
				    				<s:reset value="重置"></s:reset>
				    				<a href="jsp_user_messageselect.action">返回</a>
				    			</td>
				    		</tr>
						</table>
					</td>
				</tr>
			</table>
    	</div>
    	
    </s:form>
  </body>
</html>
